import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import listFooter from './components/list-footer'
import popup from './components/popup'
import { getDicts } from "@/api/common.js";

Vue.use(plugins)
Vue.component('list-footer', listFooter)
Vue.component('popup', popup)

Vue.config.productionTip = false

// 全局方法挂载
Vue.prototype.getDicts = getDicts
Vue.prototype.$store = store
Vue.prototype.windowHeight = (uni.getSystemInfoSync().deviceModel == 'MuMu' || uni.getSystemInfoSync().deviceType == 'pad')?uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight:uni.getSystemInfoSync().windowHeight

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
